package com.simple.piger.enums;

import org.apache.commons.lang3.StringUtils;

public enum ApplyUserEduEnums {
    $1("1", "高中及以下"),
    $2("2", "大专"),
    $3("3", "本科及以上");

    private String item;

    private String desc;

    ApplyUserEduEnums(String item, String desc) {
        this.item = item;
        this.desc = desc;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String transfer(String status) {
        if (StringUtils.isBlank(status)) {
            return null;
        }
        for (ApplyUserEduEnums enums : ApplyUserEduEnums.values()) {
            if (enums.getItem().equals(status)) {
                return enums.getDesc();
            }
        }
        return null;
    }
}
